<template>
  <div class="container">
    <div class="header">
      <div class="title">订单详情</div>
      <div class="success flex_row flex_align_center">
        <img src="@/assets/images/consult/success.png" alt="" />
        <div class="flex_column">
          <div class="success_text">预约成功！</div>
          <div class="operate_success">预约操作完成</div>
        </div>
      </div>
    </div>
    <div class="container_main horizontal_center">
      <div class="header"></div>
      <div class="main">
        <div class="main_header"></div>
        <div class="main_info">
          <div class="title">本次预约信息</div>
          <div class="line"></div>
        </div>
        <div class="info">
          <div class="item flex_row">
            <div class="label">预约提交时间：</div>
            <div class="val">{{ formatDate(info.create_time * 1000) }}</div>
          </div>
          <div class="item flex_row">
            <div class="label">预约专家姓名：</div>
            <div class="val">{{ info.expert_name }}</div>
          </div>
          <div class="item flex_row">
            <div class="label">预约用户类型：</div>
            <div class="val">{{ info.reservation_situation }}</div>
          </div>
          <div class="item flex_row">
            <div class="label">预约日期时间：</div>
            <div class="val">{{ info.appointment_time }}</div>
          </div>
          <div class="item flex_row">
            <div class="label nowrap">线下咨询地点：</div>
            <div class="val">{{ info.adress }}</div>
          </div>
        </div>
      </div>
      <button class="btn" @click="$router.push('/nav/consult')">
        关闭并返回
      </button>
    </div>
  </div>
</template>

<script>
import { formatDate } from "@/utils/time.js";
export default {
  data() {
    return {
      info: {},
    };
  },
  methods: {
    formatDate,
  },
  created() {
    this.info = JSON.parse(this.$route.query.obj);
  },
};
</script>

<style lang="less" scoped>
@import "./css/index.less";
</style>
